package org.rxc.gift.exception;

/**
 * 定义响应码，并统一管理
 */
public enum ResponseCode {
    RESPONSE_CODE_200(200,"操作成功!"),
    RESPONSE_CODE_400(400,"参数校验错误!"),
    RESPONSE_CODE_500(500,"网络异常,请刷新重试!"),

    RESPONSE_CODE_100(100,"两次密码不一致,请重新核验后再提交!"),
    RESPONSE_CODE_101(101,"租户名称已存在,请重新输入!"),
    RESPONSE_CODE_102(102,"老铁，你不选中数据，臣妾上架不了啊...."),
    RESPONSE_CODE_103(103,"老铁，你不选中数据，臣妾下架不了啊...."),
    RESPONSE_CODE_104(104,"请选择满足审核通过并且下架的车辆进行上架"),
    RESPONSE_CODE_105(105,"评论不合规,请遵循网络安全规则"),
    RESPONSE_CODE_106(106,"该评论不存在,请刷新重试"),
    RESPONSE_CODE_107(107,"验证码已失效,请刷新重试"),
    RESPONSE_CODE_108(108,"验证码不一致,请重新输入"),
    RESPONSE_CODE_109(109,"电话号码已注册,请直接登录"),
    RESPONSE_CODE_110(110,"请不要重复发送验证码"),
    RESPONSE_CODE_111(111,"用户名或邮箱已存在,请重新输入后提交"),
    RESPONSE_CODE_112(112,"账号或密码错误,请重新输入"),
    RESPONSE_CODE_113(113,"手机号不能为空"),
    RESPONSE_CODE_114(114,"该手机号已绑定其他微信账号,请重新输入"),
    RESPONSE_CODE_115(115,"该手机号或用户已存在!"),
    RESPONSE_CODE_116(116,"激活失败,该激活码已过期!"),

    ;
    private Integer code;
    private String message;

    ResponseCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
